module.exports = {
    output: {
        // 为不同的入口配置出口
        filename: 'scripts/[name].js',
    },
    mode: 'development',
    devServer: {
        static: "./dist",
        open: true,
        host: 'local-ip',
        onListening(s) {
            let { address: ads, port } = s.server.address()
            console.log('http:' + ads + ':' + port);
        }
    },
    devtool: 'inline-source-map',
}
